package com.san.app.task;

import com.san.app.service.WarningSubService;
import com.san.app.vo.WarningSubDTO;

/**
 * 信用预警数据匹配处理线程
 * 
 * @author xiangyz
 *
 */
public class WarningSubThread extends Thread {

	/**
	 * 信用预警服务接口
	 */
	private WarningSubService warningSubService;

	/**
	 * 信用预警数据匹配DTO
	 */
	private WarningSubDTO warningSubDTO;

	public WarningSubThread(WarningSubService warningSubService, WarningSubDTO warningSubDTO) {
		this.warningSubService = warningSubService;
		this.warningSubDTO = warningSubDTO;
	}

	@Override
	public void run() {
		try {
			warningSubService.doMatch(warningSubDTO);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
